package com.zxx.pattern.observerPattern.observer1;

/**
 * @author zxx on 2021/3/9
 */
public class Person2 extends Observer {

    public Person2() {
        super.name = "Person2";
    }

    @Override
    public void display() {
        System.out.println(super.name + "这是Person2");
    }
}
